﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ITKRestaurant
{
    /// <summary>
    /// Interaction logic for AdminGUI.xaml
    /// </summary>
    public partial class AdminGUI : Window
    {
        private RestaurantServiceReference.RestaurantServiceClient client;
        ElrendezesGUI elrendezes = null;
        EtlapGUI etlap = null;

        MainWindow mw = null;

        public AdminGUI()
        {
            InitializeComponent();
        }

        public AdminGUI(RestaurantServiceReference.RestaurantServiceClient client, MainWindow m)
        {
            // TODO: Complete member initialization
            this.client = client;
            this.mw = m;
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            elrendezes = new ElrendezesGUI(this.client,mw);
            elrendezes.Title = "Elrendezés";
            elrendezes.Show();
            this.Hide();

        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            etlap = new EtlapGUI(this.client,this.mw);
            etlap.Title = "Étlap";
            etlap.Show();
            this.Hide();
        }
    }
}
